#include <stdio.h>
int main()
{
	double F,C;
	scanf("%lf",&F);
	C=(5.0/9.0)*(F-32.0);
	printf("%.2lf",C);
	return 0;
}